package com.zhengxing.jienci.redis.annotation;


import com.zhengxing.jienci.redis.enums.CacheStrategy;
import java.lang.annotation.*;

/**
 * @author 浪遏飞舟
 * @create 2020-06-18 14:23
 * 删除缓存
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD,ElementType.TYPE})
@Documented
public @interface DelCache {

    //缓存策略
    CacheStrategy strategy() default CacheStrategy.FIXED_AND_ATTR;

    //缓存需要的固定值
    String[] fixedValues() default {};

    //缓存需要的属性名
    String[] attrs() default {};

}
